<?php
//这是PING模块

class Ping extends spController
{
	function __construct(){ // 公用
		parent::__construct(); // 这是必须的
		$system = spClass("system");
		$sys=$system->findAll();
		$this->tpl_title = $sys[0][name];
		$this->email = $_SESSION["userinfo"]["mail"];
	}
	
	function ping_site()
	{
		$site = spClass('psite');
		$this->list=$site->a_site();
		$this->display("member/main_ping_site.html");		
	}
	
	function ping()
	{
		$siteid = $this->spArgs('siteid');
		
		$conditions['siteid'] = $siteid;
		$ping = spClass('ping');
		$this->results = $ping->spPager($this->spArgs('page', 1), 10)->findAll($conditions);
		$this->pager = $ping->spPager()->getPager();		

		$this->siteid=$siteid;
		$this->title=$this->spArgs("title");
		$this->domain = $this->spArgs("domain");
		$this->contents = "网站检测记录详情";
		$this->display("member/main_ping_record.html");
	}

}	